package operation;

import book.Book;
import book.BookList;

public class ShowOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("显示图书");
        int num = bookList.getBookNum();
        for(int i =0; i<num; ++i) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
